package com.lening.hosp.controller;

import com.lening.hosp.service.HospitalSetService;
import com.lening.model.hosp.HospitalSet;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


import javax.annotation.Resource;
import java.util.List;

/**
 * @author 李文军
 * @author 你我山巅自相逢
 * @version 1.0
 * @date 2021/4/25 20:14
 */

@RestController
@RequestMapping("/hosp")
public class HospitalSetController {
    @Resource
    private HospitalSetService hospitalSetService;

    @RequestMapping("/findAll")
    public List<HospitalSet> findAll(){
        return hospitalSetService.list();
    }
}
